#if !defined(AFX_TABCTRLEX_H__454A2263_E9DF_4919_B5B1_54C487904B70__INCLUDED_)
#define AFX_TABCTRLEX_H__454A2263_E9DF_4919_B5B1_54C487904B70__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TabCtrlEx.h : header file
//

#define MAXPAGE 40

/////////////////////////////////////////////////////////////////////////////
// CTabCtrlEx window

class CTabCtrlEx : public CTabCtrl
{
// Construction
public:
	CTabCtrlEx();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTabCtrlEx)
	//}}AFX_VIRTUAL

// Implementation
public:
	int GetPrePage();
	BOOL AddPage(LPCTSTR title, CDialog *pDialog, UINT ID);
	void SetRect();
	void Show();
	int SetCurSel(int nItem);
	int GetCurSel();
	virtual ~CTabCtrlEx();

	// Generated message map functions
protected:
	int m_nPrePage;
	LPCTSTR m_Title[MAXPAGE];
	UINT m_IDD[MAXPAGE];
	CDialog* m_pPages[MAXPAGE];
	int m_nNumOfPages;
	int m_nCurrentPage;
	//{{AFX_MSG(CTabCtrlEx)
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TABCTRLEX_H__454A2263_E9DF_4919_B5B1_54C487904B70__INCLUDED_)
